{% extends "tasks/layout.html" %}

{% block body %}
    <h1>Add Task</h1>
    <form action="{% url 'tasks:add' %}" method="post">
        {% csrf_token %}
        {{ form }}
        <!--<input type="text" name="task">-->
        <input type="submit">
    </form>

    <a href="{% url 'tasks:index' %}">Return Tasks</a>
{% endblock %}